//
//  MyCollectionReusableView.m
//  项目A --半糖
//
//  Created by romana on 16/5/23.
//  Copyright © 2016年 romana. All rights reserved.
//

#import "MyCollectionReusableView.h"

@implementation MyCollectionReusableView


//重写头视图这个类

-(instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        [self doSomething];
    }
    
    return self;
}

-(void)doSomething{
    
    self.myView = [[SecondHeadView alloc] initWithFrame:self.frame];
    [self addSubview:self.myView];
    
    
}

-(void)layoutSubviews{
    
    [super layoutSubviews];
    self.myView.frame = self.frame;
    
    
}





@end
